package cn.edu.scau.cmi.yejiancong.abstractFactory.abstractCompany;

import cn.edu.scau.cmi.yejiancong.abstractFactory.insurance.bodyInjur;
import cn.edu.scau.cmi.yejiancong.abstractFactory.insurance.carBroke;
import cn.edu.scau.cmi.yejiancong.abstractFactory.insurance.insurance;
import cn.edu.scau.cmi.yejiancong.abstractFactory.insurance.otherCase;
import cn.edu.scau.cmi.yejiancong.abstractFactory.insurance.peopleDamge;

public class PICCinsuranceFactory extends abstractCompany {
	@Override
	public insurance	PICCinsuranceType(int insurance) {
		insurance insurances =null;
		if(insurance==0) 
		insurances=new bodyInjur();
		else if(insurance==1)
		insurances=new carBroke();
		else if(insurance==2)
		insurances=new peopleDamge();
		else 
			insurances=new otherCase();
		
			return insurances;
		
	}

	@Override
	public insurance PingAninsuranceType(int insurance) {
		// TODO Auto-generated method stub
		return null;
	}



}
